package com.tsd.common.service;

import com.tsd.common.entity.CommonStorage;
import com.tsd.common.entity.CommonStorageExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonStorage服务实现层接口
 *
 * @author Hillpool
 * @date 2022/09/15 17:13:10
 */
public interface CommonStorageService {

    /**
     * 描述：根据id获取CommonStorage
     *
     * @param id
     */
    CommonStorage getCommonStorageById(Integer id) throws Exception;

    /**
     * 描述：根据sid获取CommonStorage
     *
     * @param sid
     */
    CommonStorageExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除CommonStorage
     *
     * @param list
     */
    void deleteCommonStorages(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新CommonStorage
     *
     * @param record
     * @param opUser
     */
    void saveCommonStorage(CommonStorage record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询CommonStorage
     *
     * @param params
     * @param page
     */
    List<CommonStorageExt> findCommonStorages(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询CommonStorage
     *
     * @param params
     */
    List<CommonStorageExt> findCommonStorages(Map<String, Object> params) throws Exception;
}